import request from "./request";
// 登录接口
export const adminLogin = (
  data: ILoginType
): PromiseResType<IloginResultType> => request.post("/admin/login", data);
// 获取用户信息
export const getAdminInfo = (): PromiseResType<AdminInfoResultType> =>
  request.get("/admin/info");
// 获取用户/姓名分页列表
export const getAdminList = (data: IAdminListType): PromiseResType<IListType> =>
  request.get(`/admin/list`, { params: data });
// 修改账号状态
export const AdminUpdateStatus = (data: IUpdateStatus): Promise<any> =>
  request.post(`/admin/updateStatus/${data.id}?status=${data.status}`);
